import {
    request
} from "./request";
import qs from "qs";


//   数据可视化
export function listMain(obj) {
    return request({
        url: "shop/listMain",
        method: "post",
        data: qs.stringify(obj)
    });
}
//   获取设置
export function listSetting(obj) {
    return request({
        url: "setting/listSetting",
        method: "post",
        data: qs.stringify(obj)
    });
}
//   添加 或修改 设置项
export function addOrUpdateSetting(obj) {
    return request({
        url: "setting/addOrUpdateSetting",
        method: "post",
        data: qs.stringify(obj)
    });
}
//   获取用户列表
export function getAllUser(obj) {
    return request({
        url: "user/getAllUser",
        method: "post",
        data: qs.stringify(obj)
    });
}


//  获取主页数据
export function getHomeData(obj) {
    return request({
        url: "scSystem/getHomeData",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  获取每月订单数据
export function getHomeDataOrderMonth(obj) {
    return request({
        url: "scSystem/getHomeDataOrderMonth",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  获取每月用户数据
export function getHomeDataUserMonth(obj) {
    return request({
        url: "scSystem/getHomeDataUserMonth",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  根据厂商看商品销量
export function getSalesByFactoryId(obj) {
    return request({
        url: "scSystem/getSalesByFactoryId",
        method: "post",
        data: qs.stringify(obj)
    });
}